﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class DeliveryRobot : Robot
    {
        private string shijian;

        public string Shijian 
        { 
            get => shijian; set => shijian = value; 
        }
        public DeliveryRobot(string name, string shijian) : base(name)
        {
            this.shijian = shijian;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0},我能工作{1}个小时", base.Name, this.shijian);
        }
            
    }
    
}
